package com.ufo.store.management.ui.activity;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.ufo.store.management.R;
import com.ufo.store.management.utils.Utils;

/**
 *  作者：taoli on 2017/2/22 0022 09:32
 *  
 */
public class AboutActivity extends BaseActivity {
    private static final String TAG = AboutActivity.class.getSimpleName();
    private TextView mVersionTv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initData();
        initView();
        Toolbar toolbar = (Toolbar) findViewById(R.id.tool_bar);
        toolbar.setTitle("关于程序");
        setSupportActionBar(toolbar);
        toolbar.setNavigationIcon(R.drawable.ic_back_selector);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    private void initData(){
    }

    private void initView() {
        setContentView(R.layout.activity_about);
        mVersionTv = (TextView) findViewById(R.id.tv_version);
        mVersionTv.setText( "软件版本" + Utils.getClientVersionName(this));
    }
}
